﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Microsoft.Phone.Controls;
using Coding4Fun.Phone.Controls;

namespace ontheroad
{
    public partial class mydirection : PhoneApplicationPage
    {
        public mydirection()
        {
            InitializeComponent();
        }

        private void newdirectionbut_Click(object sender, System.Windows.RoutedEventArgs e)
        {
        	// TODO: Add event handler implementation here.
            InputPrompt newdirection = new InputPrompt();
            newdirection.Completed += new EventHandler<PopUpEventArgs<string, PopUpResult>>(newdirection_Completed);
            newdirection.Title = "create new direction";
            newdirection.Message = "please, enter the direction name.";
            newdirection.Show();
    
        }

        void newdirection_Completed(object sender, PopUpEventArgs<string, PopUpResult> e)
        {
            
        }

        private void addbut_Click(object sender, System.Windows.RoutedEventArgs e)
        {
            MessageBoxResult m = MessageBox.Show("","Confirm ?",MessageBoxButton.OKCancel);
            if (m==MessageBoxResult.OK) {
                NavigationService.GoBack();
            }
        }
    }
}
